package com.yanqu.road.entity.log.cross.hsisland;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_hs_island_pve", desc = "海神岛-pve日志", autoSave = true, dataUpload = true, eventName = "seagod_battle", uploadCk = true, isCross = true)
public class LogCrossHsIslandPve extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "商会ID", dataAttribute = "guild_id")
    private String unionId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "邀请用户ids", dataAttribute = "seagod_invite")
    private String inviteUsers;

    @FieldTypeAnnotation(desc = "事件id", dataAttribute = "seagod_event")
    private int eventId;

    @FieldTypeAnnotation(desc = "事件所属用户id", dataAttribute = "seagod_belong")
    private long eventUserId;

    @FieldTypeAnnotation(desc = "消耗体力值,协助的话这里就是消耗的协助次数", dataAttribute = "seagod_usepow")
    private int costEnergy;

    @FieldTypeAnnotation(desc = "船只战力加成值千分比", dataAttribute = "seagod_boatadd")
    private int boatAddRate;

    @FieldTypeAnnotation(desc = "玩家当前buff（buffId=数量;buffId=数量;）", dataAttribute = "seagod_buffadd")
    private String buffs;

    @FieldTypeAnnotation(desc = "伤害", dataAttribute = "seagod_hurt")
    private String damage;

    @FieldTypeAnnotation(desc = "积分", dataAttribute = "seagod_getscore")
    private long score;

    @FieldTypeAnnotation(desc = "获得奖励", dataAttribute = "seagod_get")
    private String reward;

    @FieldTypeAnnotation(desc = "是否击杀,0:否，1：是", dataAttribute = "seagod_iskill")
    private int winFlag;

    public LogCrossHsIslandPve(int activityId, int groupId, String unionId, long userId, String inviteUsers, int eventId, long eventUserId, int costEnergy, int boatAddRate, String buffs, long damage, long score, String reward, int winFlag) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.unionId = unionId;
        this.userId = userId;
        this.inviteUsers = inviteUsers;
        this.eventId = eventId;
        this.eventUserId = eventUserId;
        this.costEnergy = costEnergy;
        this.boatAddRate = boatAddRate;
        this.buffs = buffs;
        this.damage = String.valueOf(damage);
        this.score = score;
        this.reward = reward;
        this.winFlag = winFlag;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
